﻿@model Project.WebUI.Models.Forgot
@using Project.Resource.User
@{
    ViewBag.Title = "Gamebetplus - ForgotPassword";
    var status = "";
    if (ViewBag.success == "0")
    {
        status = "0";
    }
    if (ViewBag.success=="1")
    {
        status = "1";
    }
}

<section class="container clearfix">
    <div class="left_content">
        <div id="deposit_ajax">

        </div>
        <div id="withdraw_ajax">

        </div>
        <script type="text/javascript">
            $(document).ready(function () {
                LoadDepositAjax(root, "ListDeposit", 1);
                LoadWithDrawAjax(root, "ListWithdraw", 1);
            });
        </script>
    </div>
    <div class="info">
        @using (Html.BeginForm("ForgotPassword", "User", FormMethod.Post, new { id = "formRegister" }))                    
        {
            @Html.AntiForgeryToken()
        <table cellpadding="0" cellspacing="0" border="0" style="color: #444242;width:550px;">
            <tr>
                <td colspan="2" height="30"></td>
            </tr>
            <tr>
                <td colspan="2" style="padding-left: 60px; color: #6db1f2; font-size: 14px; font-weight: bold;">
                    @RegisterResource.ForgotTitle <font style="font-size: 12px; font-style: italic; font-weight: normal;">@RegisterResource.Requiredfields</font>
                </td>                
            </tr>
            <tr>
                <td colspan="2" height="15"></td>
            </tr>
            <tr>
                <td class="content_td" >
                    @RegisterResource.lblUserName&nbsp;<font color="#2b8eef">*</font>
                </td>
                <td>
                    @Html.TextBoxFor(m => m.UserName, new {id = "UserName",@class="cf_input" })                    
                </td>
                <td>
                        @Html.ValidationMessageFor(m => m.UserName)
                </td>
            </tr>
            <tr>
                <td colspan="2" height="10"></td>
            </tr>
            <tr>
                <td  class="content_td">@RegisterResource.lblEmail&nbsp;<font color="#2b8eef">*</font></td>
                <td>
                     @Html.TextBoxFor(m => m.Email, new {id = "Email",@class="cf_input"})                                        
                </td>
                <td>
                    @Html.ValidationMessageFor(m => m.Email)
                </td>
            </tr>                        
            <tr>                                                              
                <td colspan="2" height="30"></td>
            </tr>           
        </table>
        <div style="margin-left:131px;">
            <input type="submit" name="sbReg" id="sbReg" value="@RegisterResource.Submit" class="button" style="height:30px;" />
        </div>
        }
    </div>    
</section>
<div id="ForgotFailed" title="ForgotPassword" style="display: none;">
    @RegisterResource.ForgotFailed
</div>
<div id="ForgotSuccess" title="ForgotPassword" style="display: none;">
    @RegisterResource.ForgotSuccess
</div>
<script type="text/javascript">
    var id = "ForgotFailed";
    var idS = "ForgotSuccess";
    if ("@status" == "0") {
        popupForgotF(id);
    }

    if ("@status" == "1") {        
        popupForgotS(idS);
    }
</script>
